import request from '@/utils/request'

export function login(id, password) {
  return request({
    url: '/login',
    method: 'post',
    data: { id, password }
  })
}

export function register(user) {
  return request({
    url: '/reg',
    method: 'post',
    data: user
  })
}
